package com.gitee.wsl.common.more.ext.glide.ext

import com.bumptech.glide.load.Key
import com.gitee.wsl.common.more.ext.glide.cache.DiskLruPartitionCacheFactory.Companion.DISK_LRU_PARTITION_DOWNLOAD
import com.gitee.wsl.common.more.ext.glide.cache.DiskLruPartitionCacheFactory.Companion.DISK_LRU_PARTITION_DOWNLOAD_PICTURE
import java.security.MessageDigest

data class PartitionSignature(val partition:String): Key {

    override fun toString(): String {
        return partition
    }

    override fun updateDiskCacheKey(messageDigest: MessageDigest) {
    }

    companion object{
        val DOWNLOAD=PartitionSignature(DISK_LRU_PARTITION_DOWNLOAD)
        val DOWNLOAD_PICTURE=PartitionSignature(DISK_LRU_PARTITION_DOWNLOAD_PICTURE)
    }

}
